﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace W1_MenuGame
{
    public class Character:VisibleGameEntity
    {
        protected int _health;

        public int Health
        {
            get { return _health; }
            set { _health = value; }
        }

        protected int _movingSpeed;

        public int MovingSpeed
        {
            get { return _movingSpeed; }
            set { _movingSpeed = value; }
        }

        public enum CharacterAction
        {
            Standing,
            Walking,
            Attacking,
            RiddingHorse,
        }

        public override void Initialize(ContentManager content, List<KeyValuePair<string, int>> pathResources, Vector2 position)
        {
            base.Initialize(content, pathResources, position);
        }

        protected override void InitializeSprite(ref My2DSprite newSpr, List<Texture2D> lstTextures, Vector2 position)
        {
            newSpr.Initialize(lstTextures, position, true, true, 200);
        }

        public override void Update(GameTime gameTime)
        {
            //Cập nhật trạng thái nhân vật
            //Cập nhật tọa độ nhân vật

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);
        }
    }
}
